package com.cloud.user_info.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 项目和角色对象
 *
 * @author yzj
 */
@Data
@Schema(name = "项目和角色", description = "系统管理")
@TableName("sys_project_role")
public class SysProjectRole {

    @Schema(description = "主键")
    @TableId(value = "pr_id", type = IdType.AUTO)
    private Long prId;

    @Schema(description = "系统编号")
    private String sysCode;

    @Schema(description = "角色ID")
    private Long roleId;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("prId", getPrId())
                .append("sysCode", getSysCode())
                .append("roleId", getRoleId())
                .toString();
    }

}
